< previous page page_682 next page >

Page 682
-->
</SCRIPT>
</BODY>
</HTML>
The different parts of the <OBJECT> tag are as follows:
IDIndicates the name VBScript uses to identify the object, like the Name property in Visual Basic.
CLASSIDActs as a unique identifier from the Windows Registry that identifies the object.
CODEBASEProvides the URL for the OCX or CAB file used to download the object. In the example, the ListBox control is built into Internet Explorer, so the CODEBASE parameter is not needed.
height and widthIndicate the size of the object.
PARAM tagsControl behavior of an object, like the Properties window in Visual Basic.
The best way to insert ActiveX controls into a Web page is to do so in FrontPage and then copy the resulting HTML into your Web page. Figure 30.9 shows the list of ActiveX controls in FrontPage.
0682-01.jpg
Figure 30.9
Class IDs can be determined by using FrontPage, The
controls that begin with "Microsoft Forms" are built in,
or intrinsic to Internet Explorer and do not require downloading.
In Chapter 14, "Creating ActiveX Controls," you learned how to create your own ActiveX controls, which can be placed on a Web page. Using your own controls offers several advantages over plain VBScript and HTML, including the following:
Full VB functionality is available.
Your code cannot be easily viewed by the user, as with script code.
The Windows Scripting Host
In addition to VBScript's multiple uses on the Internet, Microsoft has also recently touted VBScript as a replacement for batch files. By installing the Windows Scripting Host, available

 
< previous page page_682 next page >